package com.groupscore.score.dao;

import com.groupscore.score.pojo.Option;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Map;


/**
 * 数据访问接口
 * @author Administrator
 *
 */
public interface OptionDao extends JpaRepository<Option, String>{

    @Query(value = "select * from `option_item` ", nativeQuery = true)
    List<Map> findOption();

}
